package hzmg.akkacloud.server.web.response;

import hzmg.akkacloud.server.persistence.remote.model.ConfigInfoDO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class ConfigInfoVO {

    private Long id;

    private String dataId;

    private String groupId;

    private String content;

    private String type;

    public static ConfigInfoVO from(ConfigInfoDO configInfoDO) {
        ConfigInfoVO vo = new ConfigInfoVO();
        BeanUtils.copyProperties(configInfoDO, vo);
        return vo;
    }
}
